import https from "./http"
import { React, useState, useEffect } from 'react'

const Notice = () => {
    const [notice, setNotice] = useState(null);
    useEffect(() => {
        https('Notice_list/getAll', "get", res => {
            // console.log(res)
            setNotice(res.data.length)
        });
    }, []);
    useEffect(() => { },
        [
            notice
        ]);
    return (
        notice
    )
}

export default Notice
